
#ifndef _HardwareSerial_H
#define _HardwareSerial_H

#include "stdint.h"
#define CON_COM_PORT  17


void pinMode(uint8_t pin, uint8_t mode);
void digitalWrite(uint8_t pin, uint8_t val);
int digitalRead(uint8_t pin);

class HardwareSerial {
public:
    HardwareSerial();
    int available();
    void begin(unsigned long baud);
    size_t write(uint8_t);
    size_t write(const uint8_t *buffer, size_t size);
    size_t readBytes(uint8_t *buffer, size_t length);
    size_t readBytes(char* buffer, size_t length);
    size_t printf(const char * format, ...);
};


#endif
